package cn.iocoder.yudao.module.resource.controller.admin.advertiser.vo;

import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum;
import cn.iocoder.yudao.framework.common.validation.InEnum;
import cn.iocoder.yudao.module.resource.enums.AuditStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Schema(description = "管理后台 - 广告商创建/修改 Request VO")
@Data
public class ResourceAdvertiserSaveReqVO {

    @Schema(description = "广告商ID", example = "1024")
    private Long id;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1001")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "XX广告有限公司")
    @NotBlank(message = "公司名称不能为空")
    @Size(max = 200, message = "公司名称长度不能超过200个字符")
    private String companyName;

    @Schema(description = "联系人", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotBlank(message = "联系人不能为空")
    @Size(max = 50, message = "联系人长度不能超过50个字符")
    private String contactPerson;

    @Schema(description = "联系电话", requiredMode = Schema.RequiredMode.REQUIRED, example = "13800138000")
    @NotBlank(message = "联系电话不能为空")
    @Size(max = 20, message = "联系电话长度不能超过20个字符")
    private String contactPhone;

    @Schema(description = "营业执照URL", example = "https://example.com/license.jpg")
    @Size(max = 500, message = "营业执照URL长度不能超过500个字符")
    private String businessLicense;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    @InEnum(value = CommonStatusEnum.class, message = "状态必须是 {value}")
    private Integer status;

    @Schema(description = "审核状态", example = "1")
    @InEnum(value = AuditStatusEnum.class, message = "审核状态必须是 {value}")
    private Integer auditStatus;

    @Schema(description = "审核备注", example = "审核通过")
    @Size(max = 500, message = "审核备注长度不能超过500个字符")
    private String auditRemark;

}
